<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <Footer></Footer>
  </div>
</template>

<script>
import Footer from './components/Footer/index.vue'
import Header from './components/Header/index.vue'
export default {
  name: 'App',
  components: {
    Header,Footer
  },
  mounted() {
    //派发一个action ||获取商品分类的三级列表的数据
    //放在app中，只请求一次，提高效率
      this.$store.dispatch('categoryList')
  },
}
</script>

<style>
  
</style>
